//
//  WebViewController.swift
//  01sinablog
//
//  Created by ZhangZiang on 15/12/29.
//  Copyright © 2015年 ZhangZiang. All rights reserved.
//

import UIKit

class WebViewController: UIViewController {

    var urlStr : String?
    
    private let webView = UIWebView()
    
    override func loadView() {
        view = webView
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        loadPage()

    }
    
    private func loadPage() {
        let url = NSURL(string: urlStr ?? "")
        let request = NSURLRequest(URL: url!)
        webView.loadRequest(request)
    }
   
}
